<%@page import="org.apache.jasper.tagplugins.jstl.core.ForEach"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ page import="java.util.List" %>
<%@ page import="javax.jdo.PersistenceManager" %>
<%@ page import="com.google.appengine.api.users.User" %>
<%@ page import="com.google.appengine.api.users.UserService" %>
<%@ page import="com.google.appengine.api.users.UserServiceFactory" %>
<%@ page import="epis.unsa.Alumno" %>
<%@ page import="epis.unsa.PMF" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Lista de Usuarios</title>
</head>
<body>
<%
	PersistenceManager pm = PMF.get().getPersistenceManager();
    String query = "select from " + Alumno.class.getName();
    List<Alumno> students = (List<Alumno>) pm.newQuery(query).execute();
%>
<table border="1">
<%
    for(Alumno student: students){
%>
		<tr>
			<td> <%= student.getCui().toString() %> </td>
			<td> <%= student.getFirstname() %> </td>
			<td> <%= student.getLastname() %> </td>
			<td> <%= student.getHandle() %> </td>
			<td> <%= student.getEmail() %> </td>
			<td> <%= student.getDate() %> </td>
		</tr>
<%    	
    }
%>
</table>
</body>
</html>